libmath.a:add.o
	ar -rc $@ $^

add.o:add.c
	gcc -c -o $@ $^

.PHONY:clean
clean:
	rm -rf *.o lib *out *.out 


.PHONY:output

output:
	mkdir -p lib/include
	mkdir -p lib/libmath
	mv *.a lib/libmath
	mv *.h lib/include
	rm *.o
